<?php  # Script -- splice.php

/* Author @ Huoty
 *   Date @ 2015-03-26 16:24:16
 *  Brief @ 
 */

$a=array("red", "green", "blue", "yellow");
count ($a); //得到4
array_splice($a,1,1); //删除第二个元素
count ($a); //得到3
echo $a[2] . '<br>'; //得到yellow
echo $a[1] . '<br>';//得到blue

?>
